﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Wyse.Server.Game
{
    /// <summary>
    /// Player sex enumeration
    /// </summary>
    public enum PlayerSex
    {
        Male,
        Female,
        Unknown
    }

    /// <summary>
    /// Represetns a single player
    /// </summary>
    public class PlayerState
    {
        /// <summary>
        /// Ctor
        /// </summary>
        /// <param name="name"></param>
        public PlayerState(String name, PlayerSex sex)
        {
            Name = name;
            Sex = sex;
        }

        /// <summary>
        /// Gets the player's name
        /// </summary>
        public String Name
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets a value indicating the player's sex
        /// </summary>
        public PlayerSex Sex
        {
            get;
            private set;
        }

        /// <summary>
        /// Gets or sets the amount of money this player has
        /// </summary>
        public int Money
        {
            get { return mMoney; }
            set
            {
                if (value < 0)
                    throw new ArgumentException();
                mMoney = value;
            }
        }

        private int mMoney;
    }
}
